#ifndef CLIPRECT_H
#define CLIPRECT_H
#include "canvas1.h"
#include "ConvexPolygon.h"

class ClipPolygon : public ConvexPolygon
{
    public:
    ClipPolygon(void);
    ClipPolygon(list<Point2> &points);
	bool CyrusBeckClip(Point2 &first, Point2 &second);
	bool chopCI(double& tIn, double& tOut, double numer, double denom);

    private:
    void chopLine(Point2 &point, Point2 &del, char code);

};
#endif /* CLIPRECT_H */
